package com.winit.schedule.core.model;

public class JobID implements ID {

    private String jobId;

    public JobID(){
    }

    public JobID(String jobId){
        this.jobId = jobId;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    @Override
    public boolean equals(Object o) {
        JobID that = (JobID) o;
        return this.jobId.equals(that.jobId);
    }

    @Override
    public int hashCode() {
        return null != jobId ? jobId.hashCode() : 0;
    }

    @Override
    public String getId() {
        return this.jobId;
    }

}
